Skip to main content

API Usage

This documentation outlines the key API endpoints available for managing user interactions within the platform. Each endpoint is designed to facilitate essential operations, from session management and tournament participation to wallet transactions and user authentication. Below is a table detailing each API endpoint, its description, and when to use it, helping developers effectively integrate these functionalities into their applications.

API EndpointDescriptionUsage
POST /s2s/sessionCreate or retrieve the current session context for a user (gamer).When ever user open the app call this api
POST /fe/esports/tournaments/{tournamentUID}/joinAdds the user (gamer) to a tournament.Call this API whenever a user joins the tournament.
POST /fe/esports/tournaments/{tournamentUID}/leaveRemoves the user (gamer) from a tournament.Call this API whenever a gamer leaves a tournament.
POST /fe/esports/tournaments/{tournamentUID}/scoreUpdates the score of the user (gamer) in a tournament.Call this API whenever a score update occurs.
GET /fe/esports/tournaments/activeRetrieve a list of active tournaments.Call this API to get active tournaments
GET /fe/esports/tournaments/participatedList the tournaments a user has participated in.Call this API to check whether user has participated in any tournament or not
GET /fe/esports/tournaments/{tournamentUID}Retrieve detailed information about a specific tournament.Obtain comprehensive details about a tournament.
GET /fe/esports/tournaments/{tournamentUID}/leaderboardProvide the leaderboard details for a specific tournament.Display player standings and scores within a tournament context.
GET /fe/wallet/balanceRetrieve the balance details of a user's wallet.Call this API to get wallet balance of the user
GET /fe/wallet/transactionsRetrieve the transaction history of a specific wallet address.Call this API to get the transaction history of the wallet of the specific user
POST /fe/users/auth/otp/registerGenerate a One Time Password (OTP) for user verification.Request an OTP for authentication or user confirmation processes.
POST /fe/users/auth/otp/verifyVerify the One Time Password (OTP) sent to a user's phone number.this is used for link custodial wallet to KGeN wallet
GET /fe/esports/rewards/claimProvide information about the rewards a user has earned.this is used to get what are all the unclaimed rewards for the user
POST /fe/esports/rewards/claimAllow users to claim their earned rewards.this will be called when the user is claiming the rewards
POST /fe/wallet/withdrawTransfer a user's earned balance from a custodial wallet to their KGeN wallet.this will be called on withdraw cta
GET /fe/esports/statistics/historicProvide historical data regarding a user's participation in gaming activities, specifically within the context of tournaments.Obtain historical statistics and participation details for a user.
POST /fe/users/k-store/generate-redirect-uriRedirect URI for a specific user to the k-store.Obtain a redirect URI for a specific user to k-store.
POST /fe/analytics/px-tracker/events/{eventID}/dropDrop specific event.Remove the specified event from the events.
GET /fe/users/account/linked-mobile-numberRetrieve linked mobile number of user.Retrieves the linked mobile number associated with the user.